/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * TrainingBook
 * Copyright (C) Arnaud Duval 2010 <arnaud.duval@gmail.com>
 * 
 * Projects is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Projects is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <import-activity-tree-view.hpp>


///@brief Default constructor
ImportActivityTreeView::ImportActivityTreeView()
{
    ///@brief Create the tree model
    refImportActivityListTreeModel = Gtk::ListStore::create(activityColumns);
    set_model(refImportActivityListTreeModel);

    ///@brief Add view columns
    append_column("Date", activityColumns.m_col_date);
    append_column("Heure", activityColumns.m_col_time);
    append_column("Type", activityColumns.m_col_activitytype);
    append_column("Distance", activityColumns.m_col_distance);
    append_column("Durée", activityColumns.m_col_duration);
    append_column("Activité existante", activityColumns.m_col_exists);
    append_column("Importer", activityColumns.m_col_doImport);
    append_column("ID", activityColumns.m_col_activityId);
}

